package InheritanceDemo;

// 测试类: TestInheritance1.java
public class TestInheritance1 {
    public static void main(String[] args) {
        // 创建学生对象
        Student stu = new Student("s2025001", "张三", 85.5);

        // 调用继承的父类方法
        stu.showBasicInfo();
        // 调用子类特有方法
        System.out.println("成绩：" + stu.getScore() + "分");
    }
}